package com.ruoyi.worklog.domain;

import com.ruoyi.common.core.domain.entity.SysUser;

import javax.validation.constraints.NotNull;

/**
 * @Author cw
 * @Date 2022/7/22 - 07 - 22
 * @Description  这是员工关系表
 */
// 员工对应项目表
public class WlStaffProject {
    @NotNull
    private long staff_id; // 员工id
    @NotNull
    private int project_id;//项目id
    private String role;//角色

    public WlStaffProject() {
    }

    public WlStaffProject(long staff_id, int project_id) {
        this.staff_id = staff_id;
        this.project_id = project_id;
    }

    public WlStaffProject(long staff_id, int project_id, String role) {
        this.staff_id = staff_id;
        this.project_id = project_id;
        this.role = role;
    }



    @Override
    public String toString() {
        return "WlStaffProject{" +
                "staff_id=" + staff_id +
                ", project_id=" + project_id +
                ", role='" + role + '\'' +
                '}';
    }

    public long getStaff_id() {
        return staff_id;
    }

    public int getProject_id() {
        return project_id;
    }

    public String getRole() {
        return role;
    }

    public void setStaff_id(long staff_id) {
        this.staff_id = staff_id;
    }

    public void setProject_id(int project_id) {
        this.project_id = project_id;
    }

    public void setRole(String role) {
        this.role = role;
    }
}
